package com.market.member.service.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.block.common.bean.CommonParam;
import com.block.common.bean.SessionBean;
import com.block.common.constant.AppRspCodeConstant;
import com.block.common.vo.ResponseVo;
import com.block.db.entity.MemberAuthConfigInfo;
import com.block.db.entity.MemberFeedBackInfo;
import com.block.db.mapper.MemberAuthConfigInfoMapper;
import com.block.db.mapper.MemberFeedBackInfoMapper;
import com.market.member.service.IMemberAuthConfigInfoService;
import com.market.member.service.IMemberFeedBackInfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户认证配置表 服务实现类
 * </p>
 *
 * @author 
 * @since 2023-08-09
 */
@Service
public class MemberFeedBackInfoServiceImpl extends ServiceImpl<MemberFeedBackInfoMapper, MemberFeedBackInfo> implements IMemberFeedBackInfoService {


    @Override
    public ResponseVo saveFeedBackInfo(Long uid, String content, String mobile, SessionBean sessionBean, CommonParam commonParam) {

        MemberFeedBackInfo memberFeedBackInfo =new MemberFeedBackInfo();
        memberFeedBackInfo.setContent(content);
        memberFeedBackInfo.setUid(uid);
        memberFeedBackInfo.setMobile(mobile);
        memberFeedBackInfo.setStatus("1");
        memberFeedBackInfo.setChannelCode(sessionBean.getChannelCode());
        memberFeedBackInfo.setChannelName(sessionBean.getChannelName());
        this.save(memberFeedBackInfo);

        return new ResponseVo(AppRspCodeConstant.SUCCESS);
    }
}
